<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
    <ul>
      <!-- 循环数组 -->
      <!-- <li v-for="item in list">{{item}}</li> -->
      <!-- <li v-for="(item,index) in list">{{item}}{{index}}</li> -->
      <!-- 循环对象 -->
      <!-- <li v-for="(value,key,index) in obj">{{key}}:{{value}}-{{index}}</li> -->
      <!-- <li v-for="item in num">{{item}}</li> -->
      <p v-for="item in string">{{item}}</p>
    </ul>
  </div>
</body>
<script src="./vue.js"></script>
<script>


  let vm = new Vue({
    el:"#app",
    data:{
      list:[ '小明', '小蓝', '小绿', '小红', '小青', ],
      obj:{us:'小明',ps:'123456',sex:'未知'},
      num:100,
      string:'晚上打老虎'
    }
  })


/*
  v-for 绑定一个标签 循环一个数据源
  <li v-for = "循环数据的每一项 in/of 要循环的数据"></li>
  <li v-for = "(循环数据的每一项,下标) in/of 要循环的数据"></li>
  <li v-for="(对象value,对象key,下标) in 循环对象">{{key}}:{{value}}-{{index}}</li>
*/ 



</script>
</html>